package com.seng.resourcetycoon.gui.models;

import java.math.BigDecimal;

public class PlayerInfo {

    private String name;
    private BigDecimal coins = null;
    private int points;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getCoins() {
        return coins;
    }

    public void setCoins(BigDecimal coins) {
        this.coins = coins;
    }

    public void addCoin(BigDecimal amount){
        coins = coins.add(amount);
    }

    public void subtractCoin(BigDecimal amount){
        coins = coins.subtract(amount);
    }

    public int getPoints() {
        return points;
    }

    public void setPoints(int points) {
        this.points = points;
    }
}
